import YkShowJson from './YkShowJson.vue'
import { createVNode, render } from 'vue'

export const YkShowJSON = {
  show (json: any, title?: string, theme?: 'light' | 'dark') {
    const instance = createVNode(YkShowJson, { json, title, theme })
    render(instance, document.createElement('div'))
  }
}
